package fr.univnantes.lina.mlnlp.models.ml;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * 
 * @author hernandez
 * @param <T>
 *
 */
public class InstancesList<T> {

	private List<T> instancesList;

	/**
	 * 
	 */
	public List<T> getInstancesList(){
		return this.instancesList;
	}
	

	
	/**
	 * 
	 */
	public void setInstancesList(List<T> instancesList){
		 this.instancesList = instancesList ;
	}
	
	/**
	 * 
	 */
	public void add(T instance){
		this.instancesList.add(instance);
	}
	
	/**
	 * 
	 */
	public int size(){
		return this.instancesList.size();
	}
	
	
	/**
	 * 
	 */
	public InstancesList() {
		super();
		this.instancesList = new ArrayList<T>();
	}


	
}
